package com.web.controller;

import com.jfinal.core.Controller;
import com.web.model.Message;

/**
 * Created by reeveslee on 16/8/4.
 */
public class MessageController extends Controller {

    public void gotoMessagePage() {
        int pageId = getParaToInt(0);
        Message message = Message.messageDao.findById(pageId);
        setAttr("content", message.get("html"));
        setAttr("title", message.get("title"));
        renderJsp("/messagePage.jsp");
    }
}
